<div class="weui-tab">
  <weui-navbar>
    <weui-navbar-item>
      {{restRiskExecution?.riskExecution?.checkTarget?.name}}
    </weui-navbar-item>
  </weui-navbar>

  <div class="weui-tab__panel">
    <article class="weui-article" style="padding-bottom: 0">

      <section>
        <weui-items *ngIf="restRiskExecution?.riskExecution?.checkSpecDetail?.templateItemBased">
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-star text-success"></i>
            <p weui-content class="mb-0">隐患大类</p>
            <p weui-last class="mb-0">{{ restRiskExecution?.category?.name }}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tag text-success"></i>-->
            <!--<p weui-content class="mb-0">排查方式</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkType}}</p>-->
          <!--</weui-item>-->
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>
            <p weui-content class="mb-0">排查</p>
            <p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkSpecDetail?.templateItemBased?.checkSource?.name}}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>-->
            <!--<p weui-content class="mb-0">排查状态</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.status | executionStatus}}</p>-->
          <!--</weui-item>-->
        </weui-items>

        <weui-items *ngIf="restRiskExecution?.riskExecution?.checkSpecDetail?.deptBased">
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-star text-success"></i>
            <p weui-content class="mb-0">隐患大类</p>
            <p weui-last class="mb-0">{{ restRiskExecution?.category?.name }}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tag text-success"></i>-->
            <!--<p weui-content class="mb-0">排查方式</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkType}}</p>-->
          <!--</weui-item>-->
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>
            <p weui-content class="mb-0">排查</p>
            <p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkSpecDetail?.deptBased?.checkSource?.name}}</p>
          </weui-item>
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-sitemap text-success"></i>
            <p weui-content class="mb-0">排查部门</p>
            <p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkSpecDetail?.deptBased?.deptName}}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>-->
            <!--<p weui-content class="mb-0">排查状态</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.status | executionStatus}}</p>-->
          <!--</weui-item>-->
        </weui-items>

        <weui-items *ngIf="restRiskExecution?.riskExecution?.checkSpecDetail?.dimensionBased">
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-star text-success"></i>
            <p weui-content class="mb-0">隐患大类</p>
            <p weui-last class="mb-0">{{ restRiskExecution?.category?.name }}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tag text-success"></i>-->
            <!--<p weui-content class="mb-0">排查方式</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkType}}</p>-->
          <!--</weui-item>-->
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>
            <p weui-content class="mb-0">排查</p>
            <p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkSpecDetail?.dimensionBased?.checkSource?.name}}</p>
          </weui-item>
          <weui-item>
            <i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-map-marker text-success"></i>
            <p weui-content class="mb-0">排查位置</p>
            <p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.checkSpecDetail?.dimensionBased?.checkTarget}}</p>
          </weui-item>
          <!--<weui-item>-->
            <!--<i weui-start style="width:20px;margin-right:5px;display:block" class="fa fa-tasks text-success"></i>-->
            <!--<p weui-content class="mb-0">排查状态</p>-->
            <!--<p weui-last class="mb-0">{{restRiskExecution?.riskExecution?.status | executionStatus}}</p>-->
          <!--</weui-item>-->
        </weui-items>

      </section>
    </article>

    <article class="weui-article pt-0 mt-3">
      <section>
        <h4 class="title" style="padding-left: 15px">
          <a class="fa fa-file-text-o text-success"></a>&nbsp; 隐患报告
        </h4>
        <weui-items>
          <weui-item *ngFor="let report of restRiskExecution?.riskExecution?.reports">
            <div weui-content (click)="detail(report)">
              <a href="javascript:void(0);">{{report?.location}} {{report?.subCategory?.name}} {{report?.riskCommonIssue[0]?.name}} </a>
            </div>
          </weui-item>
        </weui-items>
      </section>
    </article>
  </div>
</div>
